function process() 
{ 
  // Create the HTML code 
  var string; 
  string = "<ul>" 
         + "<li>Black</li>" 
         + "<li>Orange</li>" 
         + "<li>Pink</li>" 
         + "</ul>"; 
  // obtain a reference to the <div> element on the page 
  myDiv = document.getElementById("myDivElement"); 
  // add content to the <div> element 
  myDiv.innerHTML = string; 
} // JavaScript Document